import request from './hx'
import {URL,GET,URLTL,POST,URLTLs,URLTLsdd,shoppingCartS,cmsss,detailsss} from './mf'

export default{
    install(Vue){
        Vue.prototype.$request=this
    },
    async gtelist(params){
        let gitlist= await request({
            url:URL,
            method:GET,
            params:params
        })
        return gitlist
    },

    async gteDist(params){
        let gitDist= await request({
            url:URLTL,
            method:POST,
            params:params
        })
        return gitDist
    },


    async kanjialist(params){
        let kanjialist= await request({
            url:URLTLs,
            method:GET,
            params:params
        })
        return kanjialist
    },

    async category(params){
        let category= await request({
            url:URLTLsdd,
            method:POST,
            params:params
        })
        return category
    },
    async shoppingCart(params){
        let shoppingCart= await request({
            url:shoppingCartS,
            method:GET,
            params:params
        })
        return shoppingCart
    },
    async cms(params){
        let cms= await request({
            url:cmsss,
            method:GET,
            params:params
        })
        return cms
    },
    async detail(params){
        let detail= await request({
            url:detailsss,
            method:POST,
            params:params
        })
        return detail
    }






}
   
    
    


